package com.example.onlinetaxi.LocalStroage;

import com.example.onlinetaxi.dto.OrderDto.CompletedOrderDto;
import com.example.onlinetaxi.dto.OrderDto.OrderDTO;
import com.example.onlinetaxi.dto.OrderDto.ReceivedOrderDto;

// 本地存储，用来在线存储用户的信息
public class LocalStorage {
    public static String type = null;
    public static String phone = null;
    public static String city = null;
    // 当前订单号，只能有一个
    public static String currentOrderId = null;
    // 当前订单
    public static CompletedOrderDto currentOrder = null;

    // 点击订单,用来进行订单点击事件跳转
    public static CompletedOrderDto chosenOrder = null;

    // 地理经纬度
    public static String latitude = null;
    public static String longitude = null;


    public static void clear() {
        type = null;
        phone = null;
        city = null;
        currentOrderId = null;
        currentOrder = null;
        chosenOrder = null;

        latitude = null;
        longitude = null;
    }
}
